﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace ContosoUniversity.Models
{
    public class Instructor:Person
    {
        //public int ID { get; set; }

        //[Required]
        ////[RegularExpression(@" ^[A - Z] +[a - zA - Z'' - '\s]*$")]
        //[StringLength(50)]
        //[Display(Name = "Last Name")]
        //public string LastName { get; set; }

        //[Required]
        ////[RegularExpression(@" ^[A - Z] +[a - zA - Z'' - '\s]*$")]
        //[StringLength(50, ErrorMessage = "Cannot be longer than 50 characters!")]
        //[Column("FirstName")]
        //[Display(Name = "First Name")]
        //public string FirstMidName { get; set; }

        [DataType(DataType.Date)]
        [DisplayFormat(DataFormatString = "{0:yyyy:MM:dd}", ApplyFormatInEditMode = true)]
        [Display(Name = "Hire Date")]
        public DateTime HireDate { get; set; }

        //[Display(Name = "Full Name")]
        //public string FullName
        //{
        //    get
        //    {
        //        return LastName + "," + FirstMidName;
        //    }
        //}

        public virtual ICollection<Course> Courses { get; set; }
        public virtual OfficeAssignment OfficeAssignment { get; set; }



    }
}